Duplicated string literals make the process of refactoring complex and error-prone, as any change would need to be propagated on all
occurrences.
Exceptions
To prevent generating some false-positives, literals having less than 10 characters are excluded as well as literals matching /^\w*$/
.
String literals inside import/export statements and JSX attributes are also ignored. The same goes for statement-like string literals, e.g. 'use
strict';
.